package springbook.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import springbook.model.UserInfo;

@Mapper
public interface UserMapper {

    //查找用户登陆的用户名是否存在
    @Select("select * from user_info where delete_flag=0 and user_name=#{userName}")
    UserInfo queryUserByName(String userName);


}
